package com.shf.lease.web.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shf.lease.entity.RoomInfo;
import com.shf.lease.result.Result;
import com.shf.lease.web.admin.controller.apartment.query.QueryRoomParams;
import com.shf.lease.web.admin.controller.apartment.request.RoomSubmitVo;
import com.shf.lease.web.admin.controller.apartment.response.PageListVo;
import com.shf.lease.web.admin.controller.apartment.response.RoomVo;

/**
* @author 叶枫
* @description 针对表【room_info(房间信息表)】的数据库操作Service
* @createDate 2024-07-05 18:06:52
*/
public interface RoomInfoService extends IService<RoomInfo> {

    /**
     * 分页条件查询房间
     * @param queryParams 查询条件
     * @return
     */
    Result<PageListVo<RoomVo>> queryPageListRoom(QueryRoomParams queryParams);

    /**
     * 保存或更新房间信息
     * @param roomSubmitVo 请求参数
     */
    void saveOrUpdateRoom(RoomSubmitVo roomSubmitVo);

    /**
     * 根据id删除房间信息
     * @param id
     */
    void removeRoomById(Long id);
}
